import request from "../common/request.js"
// 登录
export function wechatlogin (data) {
  return request({
    url: '/user/wechatlogin',
    method: 'post',
    data
  })
}
export function amend (data) {
  return request({
    url: '/user/amend',
    method: 'post',
    data
  })
}

export function Info (data) {
  return request({
    url: '/user/info',
    method: 'post',
    data
  })
}

export function editUser (data) {
  return request({
    url: '/user/amend',
    method: 'post',
    data
  })
}

export function coupon (data) {
  return request({
    url: '/coupon/main',
    method: 'post',
    data
  })
}

export function orderList (data) {
  return request({
    url: '/myorder/main',
    method: 'post',
    data
  })
}

export function orderInfo (data) {
  return request({
    url: '/myorder/info',
    method: 'post',
    data
  })
}

export function userMain (data) {
  return request({
    url: '/user/main',
    method: 'post',
    data
  })
}

export function mycourse (data) {
  return request({
    url: '/mycourse/main',
    method: 'post',
    data
  })
}

export function submit (data) {
  return request({
    url: '/feedback/submit',
    method: 'post',
    data
  })
}


export function mycardList (data) {
  return request({
    url: '/mycard/main',
    method: 'post',
    data
  })
}

export function mycardinfo (data) {
  return request({
    url: '/mycard/info',
    method: 'post',
    data
  })
}

export function mycourseInfo (data) {
  return request({
    url: '/mycourse/main',
    method: 'post',
    data
  })
}

export function mycourseQode (data) {
  return request({
    url: '/mycourse/attend',
    method: 'post',
    data
  })
}

export function face (data) {
  return request({
    url: '/face/main',
    method: 'post',
    data
  })
}

export function mycourseInfoHistory (data) {
  return request({
    url: '/mycourse/info',
    method: 'post',
    data
  })
}

export function mycourseEvaluate (data) {
  return request({
    url: '/mycourse/evaluate',
    method: 'post',
    data
  })
}

export function mycourseSubmit (data) {
  return request({
    url: '/mycourse/submit',
    method: 'post',
    data
  })
}

export function inviteMain (data) {
  return request({
    url: '/invite/main',
    method: 'post',
    data
  })
}

export function invitePoster (data) {
  return request({
    url: '/invite/poster',
    method: 'post',
    data
  })
}

export function operate (data) {
  return request({
    url: '/redeem/operate',
    method: 'post',
    data
  })
}

export function redeemMain (data) {
  return request({
    url: '/redeem/main',
    method: 'post',
    data
  })
}

export function groupverifyMain (data) {
  return request({
    url: '/groupverify/main',
    method: 'post',
    data
  })
}

export function goods_detail (data) {
  return request({
    url: '/groupVerify/goods_detail',
    method: 'post',
    data
  })
}

export function storeList (data) {
  return request({
    url: '/groupVerify/storeList',
    method: 'post',
    data
  })
}

export function verify_coupon (data) {
  return request({
    url: '/groupVerify/verify_coupon',
    method: 'post',
    data
  })
}

export function verify_record (data) {
  return request({
    url: '/groupverify/verify_record',
    method: 'post',
    data
  })
}

// 停卡服务接口
export function stopCar (data) {
  return request({
    url: '/mycard/stop',
    method: 'post',
    data
  })
}

// 启用卡服务
export function startCar (data) {
  return request({
    url: '/mycard/start',
    method: 'post',
    data
  })
}